package com.k3cloud.core.service.impl;


import com.k3cloud.core.mapper.K3SettingMapper;
import com.k3cloud.core.service.K3SettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class K3SettingServiceImpl implements K3SettingService {
    @Autowired
    K3SettingMapper k3SettingMapper;

    @Override
    public List<Map<String, Object>> getOptions(String code, String k3cloud) {
        return k3SettingMapper.getOptions(code, k3cloud);
    }

    @Override
    public List<Map<String, Object>> getOptionsByPlmCodeAndK3cloudFormId(String plmCode, String k3cloudFormId) {
        return k3SettingMapper.getOptionsByPlmCodeAndK3cloudFormId(plmCode, k3cloudFormId);
    }



    @Override
    public List<Map<String, Object>> getExecutionTypeByPlmCodeAndK3cloudFormId(String plmCode, String k3cloudFormId) {
        return k3SettingMapper.getExecutionTypeByPlmCodeAndK3cloudFormId(plmCode, k3cloudFormId);
    }

    @Override
    public List<Map<String,Object>> getInTreeMap(String code, String k3cloud) {
        return k3SettingMapper.getInTreeMap(code, k3cloud);
    }

    @Override
    public List<Map<String, Object>> getInTreeMapByPlmCodeAndK3cloudFormId(String plmCode, String k3cloudFormId) {
        return k3SettingMapper.getInTreeMapByPlmCodeAndK3cloudFormId(plmCode, k3cloudFormId);
    }

    @Override
    public List<Map<String, Object>> getOutTreeMap(String code, String k3cloud) {
        return k3SettingMapper.getOutTreeMap(code, k3cloud);
    }

    @Override
    public List<Map<String, Object>> getOutTreeMapByPlmCodeAndK3cloudFormId(String plmCode, String k3cloudFormId) {
        return k3SettingMapper.getOutTreeMapByPlmCodeAndK3cloudFormId(plmCode, k3cloudFormId);
    }
}
